import Vue from 'vue'
import Router from 'vue-router'
// import login from '@/components/login'
// import message from '@/components/message'
// import home from '@/components/home'
// import inforlist from '@/components/inforlist'
// import channel from '@/components/channel'
// import personal from '@/components/personal'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'login',
      component: resolve => require(['@/pages/login'],resolve)
    },
    {
      path: '/',
      name: 'home',
      component: resolve => require(['@/pages/home'],resolve),
      children:[
        {
      		path:'/sorce_list',
          name: 'sorce_list',
          component: resolve => require(['@/pages/sorce/sorce_list.vue'],resolve)
        },
        {
      		path:'/sorce_add',
          name: 'sorce_add',
          component: resolve => require(['@/pages/sorce/sorce_add.vue'],resolve)
        },
        {
      		path:'/banner_list',
          name: 'banner_list',
          component: resolve => require(['@/pages/sorce/banner_list.vue'],resolve)
        },
        {
      		path:'/banner_add',
          name: 'banner_add',
          component: resolve => require(['@/pages/sorce/banner_add.vue'],resolve)
        },
        {
      		path:'/app_list',
          name: 'app_list',
          component: resolve => require(['@/pages/appmanage/app_list.vue'],resolve)
        },
        {
      		path:'/app_add',
          name: 'app_add',
          component: resolve => require(['@/pages/appmanage/app_add.vue'],resolve)
        },
        {
      		path:'/module_list',
          name: 'module_list',
          component: resolve => require(['@/pages/appmanage/module_list.vue'],resolve)
        },
        {
      		path:'/module_add',
          name: 'module_add',
          component: resolve => require(['@/pages/appmanage/module_add.vue'],resolve)
        },
        {
      		path:'/module_file_list',
          name: 'module_file_list',
          component: resolve => require(['@/pages/appmanage/module_file_list.vue'],resolve)
        },
        {
      		path:'/module_file_add',
          name: 'module_file_add',
          component: resolve => require(['@/pages/appmanage/module_file_add.vue'],resolve)
        },
        {
      		path:'/my_page_list',
          name: 'my_page_list',
          component: resolve => require(['@/pages/mypage/my_page_list.vue'],resolve)
        },
        {
      		path:'/all_run',
          name: 'all_run',
          component: resolve => require(['@/pages/run/all_run.vue'],resolve)
        },
        {
      		path:'/product_report',
          name: 'product_report',
          component: resolve => require(['@/pages/run/product_report.vue'],resolve)
        },
        {
      		path:'/app_report',
          name: 'app_report',
          component: resolve => require(['@/pages/run/app_report.vue'],resolve)
        },
        {
      		path:'/my_page_add',
          name: 'my_page_add',
          component: resolve => require(['@/pages/mypage/my_page_add.vue'],resolve)
        },
        {
      		path:'/channel_add',
          name: 'channel_add',
          component: resolve => require(['@/pages/promote/channel_add.vue'],resolve)
        },
        {
      		path:'/channel_list',
          name: 'channel_list',
          component: resolve => require(['@/pages/promote/channel_list.vue'],resolve)
        },
        {
      		path:'/channel_report',
          name: 'channel_report',
          component: resolve => require(['@/pages/promote/channel_report.vue'],resolve)
        },
        {
      		path:'/link_add',
          name: 'link_add',
          component: resolve => require(['@/pages/promote/link_add.vue'],resolve)
        },
        {
      		path:'/link_list',
          name: 'link_list',
          component: resolve => require(['@/pages/promote/link_list.vue'],resolve)
        },
        {
      		path:'/matter_add',
          name: 'matter_add',
          component: resolve => require(['@/pages/promote/matter_add.vue'],resolve)
        },
        {
      		path:'/matter_list',
          name: 'matter_list',
          component: resolve => require(['@/pages/promote/matter_list.vue'],resolve)
        },
        {
      		path:'/page_add',
          name: 'page_add',
          component: resolve => require(['@/pages/promote/page_add.vue'],resolve)
        },
        {
      		path:'/page_list',
          name: 'page_list',
          component: resolve => require(['@/pages/promote/page_list.vue'],resolve)
        },
        {
      		path:'/phone_list',
          name: 'phone_list',
          component: resolve => require(['@/pages/promote/phone_list.vue'],resolve)
        }
      ]
    }
  ]
})
